package com.primary.service;

import com.github.pagehelper.PageInfo;
import com.primary.controller.request.DonationsitesRequest;
import com.primary.entity.Donationsites;

import java.util.List;
import java.util.Map;

public interface DonationsitesService {
    /**
     * 用于分页显示信息
     * @param donationsitesRequest
     */
    PageInfo<Map<String, Object>> queryByPage(DonationsitesRequest donationsitesRequest);

    /**
     * 插入一条数据
     * @param donationsites
     * @return
     */
    int insertOne(Donationsites donationsites);

    /**
     * 更新一条数据
     * @param donationsites
     * @return
     */
    int updateOneById(Donationsites donationsites);

    /**
     * 删除一条记录
     * @param id
     * @return
     */
    boolean deleteById(Integer id);

    /**
     * 选择献血车归属的献血站点
     * @return
     */
    List<String> querySitesForSelecter();

    /**
     * 选择血液来源，供前端使用
     * @return
     */
    List<String> querySitesAndCarsForSelecter();
}
